package jiChengHeDuoTai.jiChengHeDuoTai2.demo1;

public class Cat extends Animal{
    //默认会有super();
    static {
        System.out.println("static::Cat{ }");
    }
    {
        System.out.println("实例代码块 Cat{ }");

    }
    public Cat(String name,int age){
        super(name,age);
        System.out.println("Cat()...");
    }

    public void mimi(){
        System.out.println(this.name+"正在咪咪叫");
    }
}
